<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
    <title>用户管理</title>
    <link rel="stylesheet" type="text/css" href="http://127.0.0.1/juanpi/Static/Admin/hdjs/hdjs.css"/>
    <link rel="stylesheet" type="text/css" href="http://127.0.0.1/juanpi/Static/Admin/bootstrap/css/bootstrap.min.css"/>
    <style type="text/css">
   		a:hover{
        	text-decoration: none;
        }
        .red{color: red;}
        .green{color: green;}
    </style>
</head>
<body>
<div class="wrap">
    <table class="hd-table hd-table-list">
        <thead>
   			<tr>
				<td width="100">用户id</td>
				<td>用户名</td>
				<td width="150">头像</td>
				<td width="150">昵称</td>
				<td width="150">性别</td>
				<td width="200">邮箱</td>
				<td width="100">是否锁定</td>
				<td width="120">操作</td>
			</tr>
        </thead>
        <tbody>
			<?php foreach ($data as $k=>$v){?>
			<tr>
				<td width="50"><?php echo $v['uid'];?></td>
				<td><?php echo $v['username'];?></td>
				<td width="150"><img width="50" src="http://127.0.0.1/juanpi/<?php echo $v['face'];?>" alt="" /></td>
				<td width="150"><?php echo $v['nickname'];?></td>
				<td width="150"><?php echo $v['sex'];?></td>
				<td width="200"><?php echo $v['email'];?></td>
				<td width="100">
					    <?php if($v['is_Lock'] == 1){ ?>
	            		<span class="glyphicon glyphicon-ok green"></span>
	            		<?php }else{ ?>
	            		<span class="glyphicon glyphicon-remove red"></span>
	            	<?php } ?>
				</td>
				<td width="120">
					<a href="<?php echo U('is_lock',array('uid'=>$v['uid']));?>" class="hd-btn hd-btn-primary hd-btn-sm">锁定</a>
					    <?php if($v['is_Lock'] == 1){ ?>
					<a href="<?php echo U('no_lock',array('uid'=>$v['uid']));?>" class="hd-btn hd-btn-success hd-btn-xm">解锁</a>
					<?php } ?>
				</td>
			</tr>
			<?php }?>
        </tbody>
    </table>
    <div class="page_hdjob">
        
    </div>
</div>

</body>
</html>